﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Fcdbas.Platform.Properties;
namespace Fcdbas.WinUI.Common
{
    public class DataItemLovEventArgs : EventArgs
    {
        private string _ReturnValue;

        public string ReturnValue
        {
            get { return _ReturnValue; }
        }

        public DataItemLovEventArgs(string val )
        {
            _ReturnValue = val;
        }

    }
    public class DataItemEnterEventArgs : EventArgs
    {
        private object _control;

        public object Control
        {
            get { return _control; }
        }
        private DataItem _DataItem;
        public DataItem DItem
        {
            get { return _DataItem; }
        }
        private object _GridView;
        public object GridView
        {
            get { return _GridView; }
        }
        public DataItemEnterEventArgs(object control, DataItem di)
        {
            _control = control;
            _DataItem = di;
        }
        public DataItemEnterEventArgs(object control, DataItem di, object gview)
        {
            _control = control;
            _DataItem = di;
            _GridView = gview;
        }
    }
    /// <summary>
    /// 数据源
    /// </summary>
    public class DataSourceEventArgs : EventArgs
    {
        private Fcdbas.WinUI.Controls.DataSourceBinding _Datasource;

        public Fcdbas.WinUI.Controls.DataSourceBinding DataSource
        {
            get { return _Datasource; }
        }

        public DataSourceEventArgs(Fcdbas.WinUI.Controls.DataSourceBinding ds)
        {
            _Datasource = ds;
        }
        
    }
}
